|
|
|
|
|
|
|
10. You can use the star, linear, ring, and fully connected topology synchronization schemes. The star is the most commonly used. |
|
|
|
|
|
|
|
|
11. Use the KeepLocal method to keep database objects from replicating to other members of the replica set. This method must be used before the Design Master is created. |
|
|
|
|
|
|
|
|
Answers to Day 20 Exercise |
|
|
|
|
|
|
|
|
You should keep the Design Master at your Cincinnati office. Distribute all tables, except for the SalaryInfo table, to the Los Angeles, Chicago, and New York offices. |
|
|
|
|
|
|
|
|
For backup, each office should synchronize often with the Cincinnati Office. The Chicago office, given its size, should synchronize more often than the other two remote offices. In case of failure of the Cincinnati database, the Chicago database is probably the best choice to use as a backup. Do not keep a tape backup of the Cincinnati database. The use of a backup copy of the Design Master could be disastrous for the entire replica set. |
|
|
|
|
|
|
|
|
You should use the star topology in your synchronization strategy. This is the easiest to understand and use, as well as being the most logical because the order in which databases synchronize is unimportant. |
|
|
|
|
|
|
|
|
The following code can be attached to a command button (in this case cmdKeepLocal) to keep the SalaryInfo table from replicating. It then goes on to turn the EMPLOYEE.MDB database into a Design Master, and creates a replica named COPYCHI.MDB. |
|
|
|
|
|
|
|
|
Private Sub cmdKeepLocal_Click()
Dim dbMaster As Database
Dim LocalProperty As Property
Dim KeepTab As Object
Dim repProperty As Property
'Open the database in exclusive mode
Set dbMaster = OpenDatabase("c:\tysdbvb5\source\data\employee.mdb", True)
Set KeepTab = dbMaster.TableDefs("SalaryInfo")
Set LocalProperty = dbMaster.CreateProperty("KeepLocal", dbText, "T")
KeepTab.Properties.Append LocalProperty
KeepTab.Properties("Keeplocal") = "T"
MsgBox "The SalaryInfo table is set to not replicate"
'Create and set the replicable property
Set repProperty = dbMaster.CreateProperty("Replicable", dbText, "T")
dbMaster.Properties.Append repProperty
dbMaster.Properties("Replicable") = "T"
'Display a message box |
|
|
|
|
|